from django.db import models


# Create your models here.

class tag(models.Model):
    id = models.AutoField(primary_key=True)
    tag_name = models.CharField(max_length=64, unique=True)
    avatar = models.CharField(max_length=255, null=True)    #图标路径
    create_time = models.DateTimeField(auto_now_add=True)
    update_time = models.DateTimeField(auto_now=True)

    class Meta:
        db_table = 'mblog_tag'
